prog: tell

disassemble: tell a.out
	./elf_tt ./a.out

tell : main.c mem.c cpu.c elf_loader.c rv32i.c rv32m.c rv32fd.c
	gcc main.c mem.c cpu.c elf_loader.c rv32i.c rv32m.c rv32fd.c  -o elf_tt
a.bin: a.out
	riscv32-unknown-elf-objcopy -S -O binary -j .text a.out a.bin
a.out: tt.c
	riscv32-unknown-elf-gcc -nostdlib -march=rv32imd tt.c
clean:
	rm tell a.bin a.out


